package com.core.family.admin.service;

import com.core.family.admin.domain.FileLogic;
import com.core.common.gen.IBaseService;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.io.Serializable;

/**
 * @author honglei
 * @version 1.0
 * @time: 2023-6-14 17:05:08
 * @Description 服务实现层接口  文件逻辑存储
 */
public interface FileLogicService extends IBaseService<FileLogic> {


    /****
     * 保存文件(抽象)
     * @param file
     * @param id  存在则更新，不存在则新增
     * @return
     */
    FileLogic saveFile(MultipartFile file, String id) throws IOException;

    FileLogic getByIdOrkeyName(String keyName, String id);
}

